package com.rm.zeyou.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 技师收入/支出表
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:09
 */
@Getter
@Setter
@TableName("t_technician_consume_detail")
@ApiModel(value = "TechnicianConsumeDetail对象", description = "技师收入/支出表")
public class TechnicianConsumeDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("技师收入/支出明细表")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("提现ID")
    @TableField("technician_payout_id")
    private Long technicianPayoutId;

    @ApiModelProperty("技师id")
    @TableField("tid")
    private Long tid;

    @ApiModelProperty("订单编号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty("消费类型（（ADD=收入，REDUCE=消费 ，PAYOUT=提现）")
    @TableField("consume_type")
    private String consumeType;

    @ApiModelProperty("提现金额")
    @TableField("payout_price")
    private BigDecimal payoutPrice;

    @ApiModelProperty("项目收入")
    @TableField("item_revenue")
    private BigDecimal itemRevenue;

    @ApiModelProperty("车费收入")
    @TableField("fare_revenue")
    private BigDecimal fareRevenue;

    @ApiModelProperty("描述")
    @TableField("consumption_describe")
    private String consumptionDescribe;

    @ApiModelProperty("入账资金状态（0=冻结 1=正常）")
    @TableField("price_status")
    private Integer priceStatus;

    @ApiModelProperty("逻辑删除（0=未删除，1=已删除）")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
      @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
